//
//  TouchView.m
//  03_UIResponder
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
// UIResponder->AppDelegate
//            ->UIView ->UIWindow
#pragma mark - 两种写法 NSStringFromClass([self class]) 可以打印出当前类,
#pragma mark - 等同于[[self class] despriction]
#pragma mark - __FUNCTION__打印当前方法名
//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
//    NSLog(@"\n%s------%@",__FUNCTION__,[self class]);
//}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {

    [super touchesBegan:touches withEvent:event];
    NSLog(@"\n%s------%@",__FUNCTION__,NSStringFromClass([self class]));
}
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
}
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
}
@end
